package com.design.pattern.decorator.domain;

import com.design.pattern.decorator.abstracts.Decrorator;
import com.design.pattern.decorator.service.Drink;

public class Suga extends Decrorator {

    public Suga(Drink drink) {
        super(drink);
    }

    //重写money
    @Override
    public double money() {
        return super.money()+3.2;
    }


    //重写desc
    @Override
    public String desc() {
        return super.desc()+"红糖";
    }
}
